package Message.Public
{
    import Framework.MQ.*;
    import Framework.Serialize.*;

    public class SFightTo extends Object implements IMessageBase
    {
        public var op:int;
        public var code:int;
        public var mousePoint:SPoint;
        public var entityIds:Array;
        public const _type:int = 3;
        public static var _regist:SFightTo = new SFightTo(true);

        public function SFightTo(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            
        }

        public function getType() : int
        {
            return this._type;
        }

        public function clone() : IMessageBase
        {
            return new SFightTo();
        }

        public function __write(param1:SerializeStream) : void
        {
            param1.writeInt(this.op);
            param1.writeInt(this.code);
            this.mousePoint.__write(param1);
            SeqEntityIdHelper.write(param1, this.entityIds);
            
        }

        public function __read(param1:SerializeStream) : void
        {
            this.op = param1.readInt();
            this.code = param1.readInt();
            this.mousePoint = new SPoint();
            this.mousePoint.__read(param1);
            this.entityIds = SeqEntityIdHelper.read(param1);
            
        }

    }
}
